Image communication apparatus capable of performing facsimile communication via IP network, method of controlling the same, and storage medium

ABSTRACT

The present invention provides a technique that enables an image communication apparatus capable of performing voice communication and T.30 in-band FAX communication over the IP network to positively detect a CNG signal and achieve switching to FAX reception in the answerphone connection mode and the FAX/TEL-switching mode. The communication apparatus includes a MODEM that controls facsimile communication and a SLIC that controls a telephone. A selector includes switches for connecting the IP network and the MODEM, and switches for connecting the IP network and the SLIC. A CPU controls the switches of the selector such that signals from the IP network are supplied to both of the MODEM and the SLIC.

TECHNICAL FIELD

The present invention relates to an image communication apparatus thatis capable of performing voice communication and in-band facsimilecommunication, a method of controlling the same, and a storage medium.

BACKGROUND ART

Conventional image communication methods include not only facsimiletransmission (hereinafter simply referred to as the “FAX”) using apublic telephone line (PSTN), but also FAX transmission using ahigh-speed network, such as an IP network. The method of FAXtransmission using the IP network includes two types. One type is usedin T.30 in-band communication using an ITU-T Recommendation T.30protocol. This method transmits a T.30 analog signal after convertingthe same to a digital signal. The T.30 analog signal is transmitted bydeeming the same as a voice signal and the method is called T.30 in-bandFAX communication. The other type is a transmission method defined byITU-T Recommendation T.38. This method transmits a signal transmittedusing the T.30 protocol directly as a digital signal, and the signal canbe transmitted at a higher speed than by T.30 FAX transmission.

These two methods both use an SIP (session initiation protocol) as callcontrol means, and realize Point-to-Point transmission on the IP network(PTL 1). Further, the IP network includes e.g. a digital subscriber linecalled the NGN (next generation network) provided by Nippon Telegraphand Telephone Corporation in Japan, and a private IP line using an IPprivate branch exchange (IP-PBX). Particularly, when the NGN is used,bandwidth guarantee, security management, etc. are performed, and hence,it is possible to transmit images at a high speed and with security.

Although the maximum transmission speed in the conventional PSTN is 33.6kbps, the maximum 1 Mbps is guaranteed in the NGN, i.e. it is possibleto transfer data approximately 30 times faster than in the PSTN. For animage communication apparatus that is capable of performing theabove-described T.38 FAX communication and T.30 in-band FAXcommunication, there has been proposed a method of configuring anoperation of the telephone system, on the IP network. This makes itunnecessary to connect to the PSTN, but enables the image communicationapparatus to perform voice communication and FAX communication only bynetwork connection. In this case, a handset and a child phone are alsoconnected to the IP network similarly to the FAX communication, andvoice data is exchanged by passing voice packets through the IP network.This is a so-called IP telephone. A method of encrypting voice packetson the IP telephone is based on ITU-T Recommendation G.711, and an RTP(real time protocol) is used as a transmission protocol. Also in such animage communication apparatus, it is necessary to support variousreception modes of a conventional facsimile connected to an analogtelephone line, and a remote reception function in a telephone operationin a manual reception mode. The above-mentioned various reception modesinclude an automatic reception mode, an answerphone (answering machine)connection mode, a FAX/TEL-switching mode, and a manual reception mode(PTL 2).

In the automatic reception mode, the image communication apparatusautomatically starts FAX reception upon receipt of a call, withoutcausing an operator to respond using a handset or a child phoneconnected to the apparatus.

The answerphone connection mode is selected when a telephone having ananswerphone function is connected as a child phone. In the answerphoneconnection mode, the apparatus is automatically switched to FAXreception when an initial identification signal (CNG (calling tone)signal in a FAX procedure) is detected during execution of unattendedrecording by the answerphone.

In the FAX/TEL-switching mode, it is automatically determined whether areceived voice call is for FAX transmission or voice communication. Inthe FAX/TEL-switching mode, if a CNG signal is detected after the callis once connected to the FAX function, FAX reception is automaticallystarted, whereas if not, the handset or the child phone is caused toring to answer the call.

The manual reception mode only supports voice communication, anddifferently from the answerphone connection mode and theFAX/TEL-switching mode, in the manual reception mode, the apparatus isnot automatically switched to FAX reception. However, if the apparatushas the remote reception function, the apparatus can be switched to FAXreception according to an instruction from a user. The remote receptionfunction is to have the apparatus main unit switched to FAX reception inresponse to an operation (predetermined dialing) from a telephoneconnected thereto.

In an image communication apparatus which is connected to the IP networkand has the function of performing FAX communication (T.38 FAXcommunication and T.30 in-band FAX communication) and voicecommunication over the IP network, calls are received in theabove-mentioned various kinds of reception modes. In this case,reception of a call for T.38 FAX communication and reception of a callfor T.30 in-band FAX communication can be distinguished from each otherbased on a media attribute provided by a caller for use in the SIPprocedure. Reception of a call is notified by a SIP INVITE signal, andthe notification includes the media attribute (definition by “m=”included in the INVITE signal). Definition of “m=audio” indicatesreception of a call for T.30 in-band communication or voicecommunication, and definition of “m=image” or “m=application” indicatesreception of a call for T.38 FAX communication. Therefore, when a callfor T.38 FAX communication is received, even when the reception mode isset to any mode, the apparatus can be automatically switched to T.38 FAXreception.

However, reception of a call for T.30 in-band communication andreception of a call for voice communication have the same mediaattribute, and hence cannot be distinguished from each other. For thisreason, to switch the apparatus to FAX reception in the answerphoneconnection mode and the FAX/TEL-switching mode, it is necessary todetermine whether or not the call is for FAX communication afterconnecting the call.

In a case where a call is received by using the conventional analogtelephone line, if the reception mode is the answerphone connection modeor the FAX/TEL-switching mode, a voice signal on the line is transmittedto a FAX communication controller that controls FAX communication. TheFAX communication controller is a so-called MODEM(modulator-demodulator).

Then, a CNG signal is identified using a filter function of the MODEM,and when the CNG signal is detected, the apparatus is automaticallyswitched to FAX reception. Also in the image communication apparatuscapable of performing T.30 in-band communication and voice communicationover the IP network, CNG detection is similarly required.

CITATION LIST Patent Literature

PTL 1: JP 2004-187262 A

PTL 2: JP H05-095439 A

SUMMARY OF INVENTION Technical Problem

To realize a telephone function by connecting to the IP network, atelephone controller for connecting between a telephone and an IPnetwork, i.e. SLIC (subscriber line interface circuit: also referred toas the subscriber line connection circuit) is used. The SLIC is mainlyused for identifying a dial signal from a telephone, controlling ringingof a telephone, detecting hooking of a telephone, and so forth. Althoughthe SLIC is a device that is essential to realization of an IPtelephone, this device is absolutely made for a telephone, and is notequipped with a function for the above-described FAX communication, morespecifically, a function of detecting a CNG signal used for switching toFAX reception.

Therefore, it is not possible to realize automatic switching to FAXreception in the answerphone connection mode and the FAX/TEL-switchingmode, only by using the SLIC.

Further, in a case where the apparatus is not equipped with the remotereception function, a means is provided for detecting a dial signal froma child phone when a call using the conventional analog telephone lineis received, and the apparatus is switched to FAX reception when apredetermined dial signal is detected.

Dialing from a child phone is performed by a DTMF (dual tonemulti-frequency) signal. The image communication apparatus capable ofperforming T.30 in-band communication and voice communication over theIP network is also required to be equipped with the remote receptionfunction, and in this case, a means for detecting a DTMF signal from achild phone is required. The above-mentioned SLIC has the DTMF detectionfunction, which can be used for DTMF detection, but no conventionalmeans has been provided which switches the apparatus to FAX receptionwhen a DTMF signal is detected.

The present invention provides a technique that enables an imagecommunication apparatus capable of performing voice communication andT.30 in-band FAX communication over the IP network to positively detecta CNG signal and achieve switching to FAX reception in the answerphoneconnection mode and the FAX/TEL-switching mode.

Solution to Problem

Accordingly, in a first aspect of the present invention, there isprovided a communication apparatus that executes communication via an IPnetwork, comprising a facsimile controller configured to controlfacsimile communication, a telephone controller configured to control atelephone, a first connection unit configured to connect the IP networkand the facsimile controller, a second connection unit configured toconnect the IP network and the telephone controller, and a connectioncontrol unit configured to control the first connection unit and thesecond connection unit such that signals from the IP network aresupplied to both of the facsimile controller and the telephonecontroller.

Accordingly, in a second aspect of the present invention, there isprovided a method of controlling a communication apparatus that executescommunication via an IP network, including a facsimile controller forcontrolling facsimile communication, a telephone controller forcontrolling a telephone, a first connection unit for connecting the IPnetwork and the facsimile controller, and a second connection unit forconnecting the IP network and the telephone controller, comprisingcontrolling the first connection unit and the second connection unitsuch that signals from the IP network are supplied to both of thefacsimile controller and the telephone controller.

Accordingly, in a third aspect of the present invention, there isprovided a non-transitory computer-readable storage medium storing acomputer-executable control program for causing a computer to execute amethod of controlling a communication apparatus that executescommunication via an IP network, including a facsimile controller forcontrolling facsimile communication, a telephone controller forcontrolling a telephone, a first connection unit for connecting the IPnetwork and the facsimile controller, and a second connection unit forconnecting the IP network and the telephone controller, wherein themethod comprises controlling the first connection unit and the secondconnection unit such that signals from the IP network are supplied toboth of the facsimile controller and the telephone controller.

Advantageous Effects of Invention

According to the present invention, an image communication apparatuscapable of performing voice communication and T.30 in-band FAXcommunication is enabled to positively detect a CNG signal and achieveswitching to FAX reception in the answerphone connection mode and theFAX/TEL-switching mode. Further, also when the remote reception is set,the apparatus is enabled to positively switch to FAX reception.

Further features of the present invention will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of an image communication apparatusaccording to an embodiment of the present invention.

FIG. 2 is a schematic diagram of a selector and an audio signalprocessor.

FIG. 3 is a flowchart of a reception determination process fordetermining various reception modes and a remote reception setting ofthe image communication apparatus shown in FIG. 1.

FIG. 4 is a flowchart of an automatic reception mode process executed ina step in FIG. 3.

FIG. 5 is a flowchart of an answerphone connection mode process executedin a step in FIG. 3.

FIG. 6A is a flowchart of a FAX/TEL-switching mode process executed in astep in FIG. 3.

FIG. 6B is a continuation of FIG. 6A.

FIG. 7 is a flowchart of a remote reception mode process executed in astep in FIG. 3.

FIG. 8 is a flowchart of a manual reception mode process executed when amanual reception mode is set as a reception mode.

FIG. 9 is a diagram showing an example of respective connection statesof switches of the selector in each reception mode of the imagecommunication apparatus.

FIG. 10 is a diagram showing an example of a protocol sequence of T.38FAX communication.

FIG. 11 is a diagram showing an example of an INVITE signal used in T.38FAX communication.

FIG. 12 is a diagram showing an example of a protocol sequence ofin-band FAX communication.

FIG. 13 is a diagram showing an example of an INVITE signal receivedwhen a call for voice communication is received.

DESCRIPTION OF EMBODIMENTS

The present invention will now be described in detail below withreference to the drawings showing an embodiment thereof.

FIG. 1 is a schematic diagram of an image communication apparatusaccording to an embodiment of the present invention.

In FIG. 1, the image communication apparatus, denoted by referencenumeral 100, is capable of performing the voice communication andin-band FAX communication over the IP network, described hereinabove.

A CPU 101 controls devices included in the image communication apparatus100 based on control programs stored in a ROM 108. A display/operationunit 103 displays e.g. windows, icons, messages, menus, and other userinterface information. Further, the display/operation unit 103 includes,though not shown, various keys for a user to perform operations forcopy, FAX, and print, a screen for enabling the user to operate e.g.icons and menus on a display screen, a pointing device, and so forth.

A scanner unit 104 reads an original. A printer unit 105 prints printdata stored in a RAM 109 or a HDD (hard disk drive) 110. The ROM 108 isa memory storing various control programs and data. The RAM 109 is amemory which provides a work area used by the CPU 101, an area forsaving data in error handling, an area for loading the control programs,and so forth. The HDD 110 is a storage device that stores variouscontrol programs and print data.

A T.30/T.38 protocol creation/analysis section 111 has a function ofgenerating facsimile transmission information using an ITU-TRecommendation T.30/T.38 protocol, and retrieving facsimile transmissioninformation from the received protocol. An IP packet creation/analysissection 106 has a function of mapping the ITU-T Recommendation T.30/T.38protocol to IP packets, and retrieving the ITU-T RecommendationT.30/T.38 protocol from received IP packets. An image conversion controlsection 107 performs compression/decompression, scaling, and lineardensity conversion on an image to be transmitted by FAX communication.

A network interface section 112 is called the NIC (network interfacecontroller), and is connected to the IP network. A selector 113 is aselection-switching connection unit configured to selectively switch andconnect signal lines for inputting and outputting signals between theNIC 112 and an audio signal processor 114.

The audio signal processor 114 includes a telephone controller (SLIC)for encoding/decoding an audio signal and connecting a telephone, and aFAX communication controller (modulator-demodulator (MODEM)) fortransmitting and receiving a FAX signal.

Further, in the audio signal processor 114, a signal from the telephonecontroller (SLIC) is supplied to a handset/child phone 115 in the caseof voice communication. In the case of T.30 in-band FAX communication,signal processing is performed by the FAX communication controller(MODEM) of the audio signal processor 114.

Next, the internal arrangement of the selector 113 and the audio signalprocessor 114 will be described with reference to FIG. 2.

FIG. 2 is a schematic diagram of the selector 113 and the audio signalprocessor 114.

The selector 113 is the selection-switching connection unit, asmentioned hereinabove, which selectively transfers a signal between theNIC 112 and the audio signal processor 114, and includes switches SW_A,SW_B, SW_C, and SW_D, as shown in FIG. 2.

The audio signal processor 114 includes the telephone controller (SLIC),denoted by reference numeral 206, and the FAX communication controller(MODEM), denoted by reference numeral 204. The SLIC 206 includes adigital-to-analog converter 207 and an analog-to-digital converter 208which are codecs of e.g. G.711, and a DTMF detector 209. Besides thesecomponents, the SLIC 206 includes a controller part, not shown, forcontrolling e.g. ringing of the handset/child phone 115. The MODEM 204includes a tone detector 205. The MODEM 204 further includes e.g. amodulating/demodulating section, not shown.

Usually, in the case of an analog telephone line, a signal on the lineside of a MODEM used for FAX communication is an analog signal. However,the MODEM 204 appearing in FIG. 2 is connected to a digital network,such as an IP network, and hence is configured as a digital MODEMconnected to the IP network side for directly exchanging digitalsignals.

An input signal from the IP network intended to the device is input fromthe NIC 112 to the selector 113 as a Line_IN signal. On the other hand,an output signal from the device to the IP network is output from theselector 113 to the NIC 112 as a Line_OUT signal.

The selector 113 controls selective connection of the signal line forthe Line_IN signal and the signal line for the Line_OUT signal to theMODEM 204 or to the SLIC 206 of the audio signal processor 114. Thiscontrol is performed using the switches SW_A, SW_B, SW_C, and SW_D.

When a user talks using the handset/child phone 115, the switches SW_Cand SW_D are closed (ON), whereby an input signal from the IP networkand an output signal to the IP network are input to and output from theSLIC 206 of the audio signal processor 114. At this time, the switchesSW_A and SW_B are in an open state (OFF). On the other hand, whenin-band FAX communication is executed using the MODEM 204, the switchesSW_A and SW_B are closed (ON), and the input signal from the IP networkand the output signal to the IP network are input to and output from theMODEM 204 of the audio signal processor 114. At this time, the switchesSW_C and SW_D are in an open state (OFF).

FIG. 3 is a flowchart of a reception determination process fordetermining various reception modes and a remote reception setting ofthe image communication apparatus 100 shown in FIG. 1. Steps of thereception determination process described hereafter are executed by theCPU 101 based on a program code loaded from the HDD 110 into the RAM109, unless otherwise specified.

In a step S1, the CPU 101 determines whether or not the reception modeis the automatic reception mode. If it is determined that the receptionmode is the automatic reception mode, the CPU 101 executes an automaticreception mode process in a step S5. On the other hand, if it isdetermined that the reception mode is not the automatic reception mode,the CPU 101 proceeds to a step S2.

In the step S2, the CPU 101 determines whether or not the reception modeis the answerphone connection mode. If it is determined that thereception mode is the answerphone connection mode, the CPU 101 executesan answerphone connection mode process in a step S6. On the other hand,if it is determined that the reception mode is not the answerphoneconnection mode, the CPU 101 proceeds to a step S3.

In the step S3, the CPU 101 determines whether or not the reception modeis the FAX/TEL-switching mode. If it is determined that the receptionmode is the FAX/TEL-switching mode, the CPU 101 executes aFAX/TEL-switching mode process in a step S7. On the other hand, if it isdetermined that the reception mode is not the FAX/TEL-switching mode,the CPU 101 judges that the manual reception mode is set, and proceedsto a step S4.

In the step S4, the CPU 101 determines whether or not the remotereception is set i.e. is enabled, and if it is determined that theremote reception is set i.e. is enabled, the CPU 101 executes a remotereception mode process in a step S8. On the other hand, if it isdetermined that the remote reception is not set i.e. is not enabled, theCPU 101 executes a manual reception mode process in a step S9.

Next, the processes executed in the steps 5 to 9 in FIG. 3 will bedescribed.

FIG. 4 is a flowchart of the automatic reception mode process executedin the step S5 in FIG. 3.

In FIG. 4, first, in a step S100, the CPU 101 determines whether or nota call has been received. Reception of a call means reception of a SIPINVITE signal from the IP network. Whether or not the INVITE signal hasbeen received is determined by the CPU 101 based on a signal from theNIC 112. If it is determined that a call has not been received, the CPU101 waits for a call, whereas if a call has been received, the CPU 101proceeds to a step S101.

In the step S101, the CPU 101 determines whether the received call isfor voice communication or data communication. This is determinedaccording to a media attribute (definition by “m=”) included in theINVITE signal. FIG. 11 shows the INVITE signal received when the call isfor data communication (T.38), and FIG. 13 shows the INVITE signalreceived when the call is for voice communication. Description after“m=” in illustrated data strings indicates the media attribute. When themedia attribute is defined as “m=application” or “m=image”, thisindicates data communication, and when the media attribute is defined as“m=audio”, this indicates voice communication. The CPU 101 thusdetermines whether the received call is for voice communication or datacommunication.

If it is determined in the step S101 that the received call is for datacommunication (NO to the step S101), the CPU 101 proceeds to a stepS110, wherein the call is connected. Connection of the call is performedby sending a “200 OK signal” using an SIP protocol, describedhereinafter, to the IP network.

Next, in a step S111, T.38 FAX communication is started, and the CPU 101determines in a step S112 whether or not FAX communication isterminated. If it is determined that FAX communication is terminated,the CPU 101 disconnects the call in a step S106, and returns. On theother hand, if it is determined in the step S112 that FAX communicationis not terminated, the CPU 101 returns to the step S111, and T.38 FAXcommunication is continued. A protocol sequence of T.38 FAXcommunication is shown in FIG. 10.

Referring to FIG. 10, exchange of SIP signals is usually performed via aSIP server. When a call is initiated from a transmitter, an INVITEsignal is sent to the SIP server, and further, the SIP server outputsthe INVITE signal to a receiver side. A receiver receives the INVITEsignal, and outputs, if the INVITE signal is acceptable, a “180 Ringing”signal indicating that a telephone is ringing, to the SIP server.Further, the receiver outputs a “200 OK” signal when the call has beenaccepted. The “180 Ringing” signal and the “200 OK” signal are sent tothe transmitter via the SIP server. Further, the transmitter sends anACK signal as a response to the “200 OK” signal to the receiver via theSIP server. After this process, the transmitter and the receiver areconnected in one-to-one relationship, whereby T.38 FAX communication isperformed. When the communication is terminated, the receiver sends aSIP BYE signal to the transmitter via the SIP server, and thetransmitter sends the “200 OK” signal as a response to the BYE signal tothe receiver via the SIP server, whereby the call is disconnected.

Referring again to FIG. 4, if it is determined in the step S101 in FIG.4 that the received call is for voice communication, the signal linesfrom the IP network to the audio signal processor 114 are connected tothe MODEM 204 so as to start T.30 in-band FAX communication (step S102).This is performed by closing the switches SW_A and SW_B of the selector113 (ON). At this time, the switches SW_C and SW_D are in the open state(OFF).

Next, the call is connected in a step S103. Similar to T.38 FAXcommunication, connection of the call is performed by sending the SIP“200 OK” signal to the IP network. Next, T.30 in-band FAX communicationis started in a step S104, and is continued until it is determined in astep S105 that the communication is terminated. If it is determined inthe step S105 that the communication is terminated, the CPU 101disconnects the call in the step S106, and returns. The call connectionand communication in T.30 in-band FAX communication differs from thoseof T.38 FAX communication in that the media attribute of the INVITEsignal shown in FIG. 11 is “m=audio”, and T.38 FAX communication in thecommunication sequence shown in FIG. 10 is replaced by T.30 in-band FAXcommunication.

As described above, when a call is received in the automatic receptionmode, first, whether the received call is for T.38 FAX communication orT.30 in-band FAX communication is determined according to a mediaattribute included in the INVITE signal, whereby the apparatus is causedto properly shift to FAX reception.

FIG. 5 is a flowchart of the answerphone connection mode processexecuted in the step S6 in FIG. 3.

Referring to FIG. 5, first, in a step S200, the CPU 101 determineswhether or not a call has been received. The step S200 is the same asthe step S100 in FIG. 4. If it is determined that a call has not beenreceived, the CPU 101 waits for a call, whereas if a call has beenreceived, the CPU 101 proceeds to a step S201.

In the step S201, the CPU 101 determines whether the received call isfor voice communication or data communication. The determination in thestep S201 is performed according to a media attribute included in theSIP INVITE signal, similarly to the step S101 in FIG. 4.

If it is determined in the step S201 that the received call is for datacommunication, the CPU 101 proceeds to a step S220 to connect the call(sends a SIP “200 OK” signal to the IP network). The step S220 and stepsS221 and S222 are the same as the steps S110 to S112 in FIG. 4.

On the other hand, if it is determined in the step S201 that thereceived call is for voice communication, the CPU 101 proceeds to a stepS202, wherein the CPU 101 causes the handset/child phone 115 to ring soas to notify the user of reception of the call using a telephone ringingfunction of the SLIC 206. Next, in a step S203, the CPU 101 determinesusing a function of the SLIC 206 whether or not the handset/child phone115 has been hooked up. If it is determined that the handset/child phone115 has not been hooked up, the CPU 101 returns to the step S202, andcontinues to cause the handset/child phone 115 to ring. On the otherhand, if it is determined that the handset/child phone 115 has beenhooked up, the CPU 101 proceeds to a step S204.

In the step S204, the CPU 101 stops causing the handset/child phone 115to ring using the function of the SLIC 206, and connects the signallines from the IP network to the audio signal processor 114, to the SLIC206, using the selector 113, so as to enable voice communication usingthe handset/child phone 115 in a step S205.

Further, in the step S205, to perform voice communication and detectionof a FAX initial identification signal (detection of a CNG signal)simultaneously, the signal lines for signals input from the IP networkare connected to the MODEM 204. More specifically, the switches SW_A,SW_C, and SW_D of the selector 113 are closed (ON). This parallelconnection makes it possible to detect a CNG signal by the MODEM 204during voice communication. At this time, the switch SW_B is in the openstate (OFF). This is to prevent an unnecessary signal from the MODEM 204from flowing into the IP network.

In the conventional telephone line, an audio signal on the telephoneline is used for CNG detection, and a CNG signal is detected fromsignals in which upstream and downstream signals are mixed, and hencenoise is generated, which lowers the detection accuracy. In the presentinvention, upstream and downstream signals are not mixed, and a CNGsignal can be detected from received signals which are digitallyseparated, and hence it is possible to largely improve the detectionaccuracy.

Next, in a step S206, CNG detection by the MODEM 204 is started. In astep S207, the SIP “200 OK” signal is sent to the IP network, and thecall is connected, and voice communication is started in a step S208.Voice communication is performed by alternately converting digitalsignals from the IP network and analog signals from the handset/childphone 115 by the digital-to-analog converter 207 and theanalog-to-digital converter 208 of the SLIC 206, respectively. In thisvoice communication, the answerphone function of the handset/child phone115 sends an automatic message as a response.

After connection of the call, in a step S209, the CPU 101 determineswhether or not a CNG signal has been detected by the MODEM 204, and if aCNG signal has not been detected, the CPU 101 determines in a step S214whether or not the voice communication is terminated. If it isdetermined that the voice communication is terminated, the CPU 101disconnects the call in a step S213, and returns. On the other hand, ifit is determined in the step S214 that the voice communication is notterminated, the CPU 101 returns to the step S208, and the voicecommunication is continued.

If a CNG signal is detected by the MODEM 204 in the step S209, the CPU101 connects the signal lines from the IP network to the audio signalprocessor 114, to the MODEM 204 in a step S210. More specifically, theswitches SW_A and SW_B of the selector 113 are closed (ON). Further, atthis time, the switches SW_C and SW_D are in the open state (OFF).Subsequently, in a step S211, T.30 in-band FAX communication is started.

The CPU 101 determines in a step S212 whether or not the FAXcommunication is terminated, and if the FAX communication is terminated,the CPU 101 disconnects the call in the step S213, and returns. On theother hand, if it is determined in the step S212 that the FAXcommunication is not terminated, T.30 in-band FAX communication iscontinued in the step S211.

FIG. 12 shows a protocol sequence in the above-described answerphoneconnection mode. Part of the sequence from reception of a call to thestart of voice communication is the same as that in the case of T.38 FAXcommunication described with reference to FIG. 10. The media attributeincluded in the INVITE signal in this case is “audio”, and hence theapparatus is not switched to FAX communication, but voice communicationis performed between the transmitter and the receiver which areconnected in one-to-one relationship. If a CNG signal output from thetransmitter is detected by the MODEM 204 of the receiver during thisvoice communication, the signal lines from the IP network to the audiosignal processor 114 are connected to the MODEM 204 by the selector 113,and T.30 in-band FAX communication is started. Part of the sequenceafter termination of communication is the same as that shown in FIG. 10,and hence description thereof is omitted.

As described above, also in the answerphone connection mode, it ispossible to positively detect a CNG signal during voice communication,and further, it is possible to easily switch to T.30 in-band FAXcommunication.

FIGS. 6A and 6B are a flowchart of the FAX/TEL-switching mode processexecuted in the step S7 in FIG. 3.

Referring to FIG. 6A, first, in a step S300, the CPU 101 determineswhether or not a call has been received. The step S300 is the same asthe step S100 in FIG. 4. If it is determined that a call has not beenreceived, the CPU 101 waits for a call, whereas if a call has beenreceived, the CPU 101 proceeds to a step S301.

In the step S301, the CPU 101 determines whether the received call isfor voice communication or data communication. The determination in thestep S301 is performed according to a media attribute included in theSIP INVITE signal, similarly to the step S101 in FIG. 4.

If it is determined in the step S301 that the received call is for datacommunication, the CPU 101 proceeds to a step S320 to connect the call(sends a SIP “200 OK” signal to the IP network). The step S320 in FIG.6A and steps S321 and S322 in FIG. 6B are the same as the steps S110 toS112 in FIG. 4, and hence description thereof is omitted.

On the other hand, if it is determined in the step S301 that thereceived call is for voice communication, the CPU 101 proceeds to a stepS302, wherein the CPU 101 connects the signal lines for respective inputand output signals from and to the IP network, to the MODEM 204, andstarts detection of a CNG signal by the MODEM 204 in a step S303. Then,in a step S304, the CPU 101 sends the SIP “200 OK” signal to the IPnetwork to thereby connect the call.

Next, in a step S305, the CPU 101 determines whether or not OGM outputis on. OGM is an acronym of Out Going Message, which is a voice message,such as a message of “Ringing is being performed. Please wait. To startFax, begin transmission now.” When the OGM function is on, the CPU 101outputs an OGM signal from the MODEM 204 to the IP network in a stepS306.

Next, in a step S307, the CPU 101 determines whether or not a CNG signalhas been detected by the MODEM 204. If a CNG signal has been detected,the CPU 101 proceeds to a step S313 in FIG. 6B, wherein T.30 in-band FAXcommunication is started. Then, in a step S314 in FIG. 6B, CPU 101determines whether or not the communication is terminated, and if thecommunication is terminated, the CPU 101 disconnects the call in a stepS315 in FIG. 6B, and returns.

On the other hand, if it is determined in the step S307 that a CNGsignal has not been detected, the CPU 101 proceeds to a step S308 inFIG. 6B, wherein the CPU 101 causes the handset/child phone 115 to ringusing the telephone ringing function of the SLIC 206 so as to notify theuser of reception of the call.

Next, in a step S309 in FIG. 6B, the CPU 101 sends a pseudo ringing backtone created by the MODEM 204 out to the IP network to thereby notifythe transmitter side of ringing of the telephone. The ringing back toneis a so-called ringing tone which causes the transmitter to recognizethat the telephone of the receiver is ringing. In this situation, sincethe call has been already connected, the ringing tone of the telephoneis created in a pseudo manner, and is output to the IP network. Next, ina step S310, the CPU 101 determines whether or not a CNG signal has beendetected by the MODEM 204. If a CNG signal has been detected, the CPU101 proceeds to the step S313, whereas if not, the CPU 101 proceeds to astep S311.

In the step S311, the CPU 101 determines whether or not handset/childphone 115 has been hooked up by the function of the SLIC 206. If it isdetermined that the handset/child phone 115 has been hooked up, the CPU101 stops causing the handset/child phone 115 to ring by the SLIC 206 ina step S330, and connects the signal lines for respective input andoutput signals from and to the IP network to the SLIC 206 (closes onlythe switches SW_C and SW_D of the selector 113 (ON)). This causes thecommunication state to be established for voice communication in a stepS331. Subsequently, the CPU 101 determines whether or not the voicecommunication is terminated in a step S332, and if the voicecommunication is terminated, the CPU 101 disconnects the call in thestep S315, and returns. On the other hand, if it is determined in thestep S332 that the voice communication is not terminated, the voicecommunication in the step S331 is continued.

If hookup of the handset/child phone 115 has not been detected in thestep S311, the CPU 101 determines whether or not a handset/childphone-ringing time period has elapsed in a step S312. Note that thehandset/child phone-ringing time period has been set in advance. If noresponse is received even when the handset/child phone-ringing timeperiod has elapsed, the CPU 101 automatically causes the apparatus toshift to FAX reception.

If it is determined in the step S312 that the handset/childphone-ringing time period has elapsed, T.30 in-band FAX communication isperformed in the step S313. Subsequently, if it is determined in thestep S314 that the communication is terminated, the CPU 101 disconnectsthe call in the step S315, and returns.

As described above, also in the answerphone connection mode, it ispossible to positively detect a CNG signal, and easily switch theapparatus to T.30 in-band FAX communication.

Next, the manual reception mode process will be described. In the manualreception mode, the operation is different depending on whether theremote reception setting is on or off. FIG. 7 shows a case where theremote reception setting is on.

FIG. 7 is a flowchart of a remote reception mode executed in the step S8in FIG. 3.

Referring to FIG. 7, first, in a step S500, the CPU 101 determineswhether or not a call has been received. The step S500 is the same asthe step S100 in FIG. 4. If it is determined that a call has not beenreceived, the CPU 101 waits for a call, whereas if a call has beenreceived, the CPU 101 proceeds to a step S501.

In the step S501, the CPU 101 determines whether the received call isfor voice communication or data communication. The determination in thestep S501 is performed according to a media attribute included in theSIP INVITE signal, similarly to the step S101 in FIG. 4. If it isdetermined in the step S501 that the received call is for datacommunication, the CPU 101 proceeds to a step S520 to connect the call(sends a SIP “200 OK” signal to the IP network). The step S520 and stepsS521 and S522 are the same as the steps S110 to S112 in FIG. 4.

On the other hand, if it is determined in the step S501 that thereceived call is for voice communication, the CPU 101 proceeds to a stepS502, wherein the CPU 101 causes the handset/child phone 115 to ring soas to notify the user of reception of the call using the telephoneringing function of the SLIC 206. Next, in a step S503, the CPU 101determines whether or not the handset/child phone 115 has been hooked upusing the function of the SLIC 206. If it is determined that thehandset/child phone 115 has not been hooked up, the CPU 101 returns tothe step S502, and continues causing the handset/child phone 115 toring. On the other hand, if it is determined that the handset/childphone 115 has been hooked up, the CPU 101 proceeds to a step S504.

In the step S504, DTMF detection by the SLIC 206 is started since it isnecessary to detect a DTMF signal from the child phone for the remotereception. Then, in a step S505, the CPU 101 stops causing thehandset/child phone 115 to ring by the SLIC 206, and connects the signallines from the IP network to the audio signal processor 114, to the SLIC206, using the selector 113 so as to enable voice communication usingthe handset/child phone 115 in a step S506. More specifically, the CPU101 closes only the switches SW_C and SW_D (ON).

Next, in a step S507, the CPU 101 sends the SIP “200 OK” signal to theIP network and connects the call, whereby voice communication is startedin a step S508.

In a step S509, the CPU 101 determines whether or not a predeterminedDTMF signal (dial signal) from the child phone has been detected, and ifthe predetermined DTMF signal has not been detected, the CPU 101determines whether or not the communication is terminated in a stepS514. If the communication is not terminated, the communication state inthe step S508 is continued. On the other hand, if it is determined inthe step S514 that the communication is terminated, the CPU 101disconnects the call in a step S513, and returns.

On the other hand, if it is determined in the step S509 that thepredetermined dial signal has been detected, to switch the apparatus toT.30 in-band FAX communication, the CPU 101 connects the signal linesfrom the IP network to the audio signal processor 114, to the MODEM 204in a step S510. Further, T.30 in-band FAX communication is started in astep S511.

The CPU 101 determines whether or not the communication is terminated ina step S512, and if it is determined that the communication is notterminated, the CPU 101 returns to the step S511 to continue the T.30in-band FAX communication. On the other hand, if it is determined in thestep S512 that the communication is terminated, the CPU 101 disconnectsthe call in the step S513, and terminates the present process.

As described above, even when the remote reception function setting ison in the manual reception mode, a signal from the IP network isproperly connected to the SLIC or the MODEM using the DTMF signaldetection function of the SLIC 206. This makes it possible to realizevoice communication, detection of a DTMF signal during voicecommunication, and T.30 in-band FAX communication after detection of theDTMF signal.

FIG. 8 is a flowchart of the manual reception mode process executed inthe step S9 in FIG. 3. FIG. 8 shows a case where the remote receptionsetting is off in the manual reception mode.

Referring to FIG. 8, first, in a step S600, the CPU 101 determineswhether or not a call has been received. The step S600 is the same asthe step S100 in FIG. 4. If it is determined that a call has not beenreceived, the CPU 101 waits for a call, whereas if a call has beenreceived, the CPU 101 proceeds to a step S601.

In the step S601, the CPU 101 determines whether the call is for voicecommunication or data communication. The determination in the step S601is performed according to a media attribute included in the SIP INVITEsignal, similarly to the step S101 in FIG. 4. If it is determined in thestep S601 that the call is for data communication, the CPU 101 proceedsto a step S610 to connect the call (sends a SIP “200 OK” signal to theIP network). The step S610 and steps S611 and S612 are the same as thesteps S110 to S112 in FIG. 4.

On the other hand, if it is determined in the step S601 that the call isfor voice communication, the CPU 101 proceeds to a step S602, whereinthe CPU 101 causes the handset/child phone 115 to ring so as to notifythe user of reception of the call using the telephone ringing functionof the SLIC 206. Next, in a step S603, the CPU 101 determines whether ornot the handset/child phone 115 has been hooked up using the function ofthe SLIC 206. If it is determined that the handset/child phone 115 hasnot been hooked up, the CPU 101 returns to the step S602, and continuesto cause the handset/child phone 115 to ring. On the other hand, if itis determined that the handset/child phone 115 has been hooked up, theCPU 101 proceeds to a step S604.

In the step S604, the CPU 101 stops causing the handset/child phone 115to ring by the SLIC 206, and connects the signal lines for respectiveinput and output signals from and to the IP network, to the SLIC 206using the selector 113 in a step S605. Subsequently, in a step S606, aSIP “200 OK” signal is sent to the IP network and the call is connected,whereby voice communication is started in a step S607.

Next, the CPU 101 determines whether or not the voice communication isterminated in a step S608, and if the communication is not terminated,the CPU 101 returns to the step S607 to continue the voicecommunication. On the other hand, if it is determined in the step S607that the communication is terminated, the CPU 101 disconnects the callin a step S609, and returns.

As described above, even when the remote reception setting is off in themanual reception mode, it is possible to perform the operation of manualreception by using the handset/child phone-ringing function of the SLIC206 and further properly connecting the signal lines from the IP networkto the SLIC.

FIG. 9 is a diagram showing an example of respective connection statesof the switches of the selector 113 in each reception mode of the imagecommunication apparatus 100.

In T.30 in-band FAX communication, the switches SW_A and SW_B are in theclosed (ON) state, whereby signals from the network are supplied to theMODEM 204, whereby FAX communication is performed. In the voicecommunication state in the answerphone connection mode, the switchesSW_A, SW_C, and SW_D are in the closed (ON) state, whereby CNG detectionby the MODEM 204 and voice communication via the SLIC 206 are enabled.When a CNG signal is detected in this state, the switches are changed torespective states for T.30 in-band FAX communication, and hence it ispossible to switch the apparatus to T.30 in-band FAX communication.

In the communication state other than the answerphone connection mode,the switches SW_C and SW_D are in the closed (ON) state, whereby voicecommunication via the SLIC 206 is enabled.

Further, during operation for detecting a CNG signal in theFAX/TEL-switching mode, the switches SW_A and SW_B are in the closed(ON) state, whereby CNG detection by the MODEM 204 is properlyperformed. Then, after a CNG signal has been detected, the switches arechanged to respective states for T.30 in-band FAX communication, andhence it is possible to switch the apparatus to T.30 in-band FAXcommunication.

As described above, in the image communication apparatus that isconnected to a high-speed digital line network, such as the IP network,and is capable of performing voice communication and T.30 in-band FAXcommunication defined by the ITU-T Recommendation T.30, the presentinvention has the following features: In reception modes out of theabove-described plurality of reception modes (answerphone connectionmode, FAX/TEL-switching mode, and manual reception mode (with remotereception setting “on”)), in which it is required to switch theapparatus to T.30 in-band FAX communication after a call is received,signals from the network are properly switchingly supplied to the MODEMor the SLIC. This makes it possible to positively change the apparatusto T.30 in-band FAX communication and support each reception mode.

Aspects of the present invention can also be realized by a computer of asystem or apparatus (or devices such as a CPU or MPU) that reads out andexecutes a program recorded on a memory device to perform the functionsof the above-described embodiment, and by a method, the steps of whichare performed by a computer of a system or apparatus by, for example,reading out and executing a program recorded on a memory device toperform the functions of the above-described embodiment. For thispurpose, the program is provided to the computer for example via anetwork or from a recording medium of various types serving as thememory device (e.g., computer-readable medium).

While the present invention has been described with reference to anexemplary embodiment, it is to be understood that the invention is notlimited to the disclosed exemplary embodiment. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all modifications, equivalent structures and function.

REFERENCE SIGNS LIST

-   100 image communication apparatus-   101 CPU-   103 display/operation unit-   105 printer unit-   106 IP packet creation/analysis section-   108 ROM-   109 RAM-   111 T.30/T.38 protocol creation/analysis section-   112 network I/F section-   113 selector-   114 audio signal processor-   204 MODEM-   205 tone detector-   206 SLIC-   207 D/A converter-   208 A/D converter-   209 DTMF detector

The invention claimed is:
 1. A communication apparatus that is capableof executing facsimile communication via an IP network, thecommunication apparatus comprising: a facsimile controller including atone detector configured to detect a facsimile identification signal,and configured to control facsimile communication by deeming an analogsignal as voice; a telephone controller configured to control atelephone; a selector configured to control whether to supply inputsignals from the IP network to both the facsimile controller and thetelephone controller, or to either the facsimile controller or thetelephone controller; and at least one processor that executesinstructions to set a reception mode of the communication apparatus fromamong a plurality of reception modes including a FAX/TEL-switching modethat, when a call is received, automatically determines whether toexecute a facsimile reception or execute voice communication using thetelephone, wherein the selector provides control so that the inputsignals from the IP network are supplied to the facsimile controller andare prevented from being supplied to the telephone controller accordingto a call for voice communication being received when theFAX/TEL-switching mode has been set, and wherein the facsimilecontroller executes the facsimile communication via the IP networkaccording to the tone detector detecting the facsimile identificationsignal.
 2. The communication apparatus according to claim 1, wherein:the telephone controller causes the telephone to ring according to thecall for voice communication being received while the FAX/TEL-switchingmode has been set, the selector provides control so that the inputsignals from the IP network are supplied to the telephone controller andare prevented from being supplied to the facsimile controller accordingto an off-hook state of the telephone being detected, and after theselector provides control so that the input signals from the IP networkare supplied to the telephone controller and are prevented from beingsupplied to the facsimile controller, the telephone controller executesvoice communication using the telephone via the IP network.
 3. Thecommunication apparatus according to claim 1, wherein the facsimilecontroller includes a modem.
 4. The communication apparatus according toclaim 1, wherein the telephone controller is an SLIC (subscriber lineinterface circuit).
 5. The communication apparatus according to claim 1,wherein the call for voice communication is an INVITE signal where amedia attribute in a SIP protocol is audio.
 6. A communication apparatusthat is capable of executing facsimile communication via an IP network,the communication apparatus comprising: a facsimile controller includinga tone detector configured to detect a facsimile identification signal,and configured to control facsimile communication; a telephonecontroller configured to control a telephone; a selector configured tocontrol whether to supply input signals from the IP network to both thefacsimile controller and the telephone controller, or to either thefacsimile controller or the telephone controller; and at least oneprocessor that executes instructions to set a reception mode of thecommunication apparatus from among a plurality of reception modesincluding a remote reception mode where a facsimile reception is startedaccording to an instruction from a user issued during voicecommunication using the telephone, wherein the selector provides controlso that the input signals from the IP network are supplied to thetelephone controller and are prevented from being supplied to thefacsimile controller according to a call for voice communication beingreceived when the remote reception mode has been set.
 7. Thecommunication apparatus according to claim 6, wherein: the telephonecontroller causes the telephone to ring according to a call for voicecommunication being received while in the remote reception mode, theselector provides control so that the input signals from the IP networkare supplied to the telephone controller and are prevented from beingsupplied to the facsimile controller according to an off-hook state ofthe telephone being detected, and after the selector provides control sothat the input signals from the IP network are supplied to the telephonecontroller and are prevented from being supplied to the facsimilecontroller, the telephone controller executes voice communication usingthe telephone via the IP network.
 8. The communication apparatusaccording to claim 7, wherein: the telephone controller waits forreception of a DTMF signal from the telephone during voice communicationusing the telephone via the IP network, the selector provides control sothat the input signals from the IP network are supplied to the facsimilecontroller and are prevented from being supplied to the telephonecontroller according to the telephone controller receiving the DTMFsignal from the telephone, and after the selector provides control sothat the input signals from the IP network are supplied to the facsimilecontroller and are prevented from being supplied to the telephonecontroller, the facsimile controller executes the facsimilecommunication via the IP network.
 9. The communication apparatusaccording to claim 6, wherein the facsimile controller executesfacsimile communication by deeming an analog signal as voice.
 10. Thecommunication apparatus according to claim 6, wherein the facsimilecontroller includes a modem.
 11. The communication apparatus accordingto claim 6, wherein the telephone controller is an SLIC (subscriber lineinterface circuit).
 12. The communication apparatus according to claim6, wherein the call for voice communication is an INVITE signal where amedia attribute in a SIP protocol is audio.
 13. A communicationapparatus that is capable of executing voice communication and facsimilecommunication via an IP network, the communication apparatus comprising:a connector that connects a telephone; at least one memory that stores aset of instructions; and at least one processor that executes theinstructions to: set a reception mode of the communication apparatusfrom among a plurality of reception modes including an answerphoneconnection mode where a facsimile reception starts according to adetection of a facsimile identification signal; cause the telephone toring according to a call for voice communication being received whilethe answerphone connection mode has been set; detect off-hooking of thetelephone and send an automatic reply message using an answerphonefunction of the telephone via the IP network; and execute the facsimilecommunication via the IP network according to the detection of thefacsimile identification signal.
 14. The communication apparatusaccording to claim 13, wherein the at least one processor executes theinstructions to: detect the off-hooking of the telephone and stopcausing the telephone to ring and send a reply signal to the call forvoice communication for a call connection via the IP network; and sendan automatic reply message using the answerphone function of thetelephone via the IP network according to the call connection beingcompleted.
 15. A method of controlling a communication apparatus that iscapable of executing facsimile communication via an IP network, thecommunication apparatus comprising a facsimile controller including atone detector configured to detect a facsimile identification signal,and configured to control facsimile communication by deeming an analogsignal as voice, a telephone controller configured to control atelephone, and a selector configured to control whether to supply inputsignals from the IP network to both the facsimile controller and thetelephone controller, or to either the facsimile controller or thetelephone controller, the method comprising the steps of: setting areception mode of the communication apparatus from among a plurality ofreception modes including a FAX/TEL-switching mode that, when a call isreceived, automatically determines whether to execute a facsimilereception or execute voice communication using the telephone;controlling the selector so that the input signals from the IP networkare supplied to the facsimile controller and are prevented from beingsupplied to the telephone controller according to a call for voicecommunication being received when the FAX/TEL-switching mode has beenset in the setting step; and executing, with the facsimile controller,the facsimile communication via the IP network according to the tonedetector detecting the facsimile identification signal.
 16. A method ofcontrolling a communication apparatus that is capable of executingfacsimile communication via an IP network, the communication apparatuscomprising a facsimile controller including a tone detector configuredto detect a facsimile identification signal, and configured to controlfacsimile communication, a telephone controller configured to control atelephone, and a selector configured to control whether to supply inputsignals from the IP network to both the facsimile controller and thetelephone controller, or to either the facsimile controller or thetelephone controller, the method comprising the steps of: setting areception mode of the communication apparatus from among a plurality ofreception modes including a remote reception mode where a facsimilereception is started according to an instruction from a user issuedduring voice communication using the telephone; and controlling theselector so that the input signals from the IP network are supplied tothe telephone controller and are prevented from being supplied to thefacsimile controller according to a call for voice communication beingreceived when the remote reception mode has been set in the settingstep.
 17. A method of controlling a communication apparatus that iscapable of executing voice communication and facsimile communication viaan IP network, the communication apparatus comprising a connector thatconnects a telephone, the method comprising the steps of: setting areception mode of the communication apparatus from among a plurality ofreception modes including an answerphone connection mode where afacsimile reception starts according to a detection of a facsimileidentification signal; causing the telephone to ring according to a callfor voice communication being received while the answerphone connectionmode has been set; detecting off-hooking of the telephone and sending anautomatic reply message using an answerphone function of the telephonevia the IP network; and executing the facsimile communication via the IPnetwork according to the detection of the facsimile identificationsignal.
 18. A non-transitory computer-readable storage medium storing aprogram executable by a computer to execute a method of controlling acommunication apparatus that is capable of executing facsimilecommunication via an IP network, the communication apparatus comprisinga facsimile controller including a tone detector configured to detect afacsimile identification signal, and configured to control facsimilecommunication by deeming an analog signal as voice, a telephonecontroller configured to control a telephone, and a selector configuredto control whether to supply input signals from the IP network to boththe facsimile controller and the telephone controller, or to either thefacsimile controller or the telephone controller, the method comprisingthe steps of: setting a reception mode of the communication apparatusfrom among a plurality of reception modes including a FAX/TEL-switchingmode that, when a call is received, automatically determines whether toexecute a facsimile reception or execute voice communication using thetelephone; controlling the selector so that the input signals from theIP network are supplied to the facsimile controller and are preventedfrom being supplied to the telephone controller according to a call forvoice communication being received when the FAX/TEL-switching mode hasbeen set in the setting step; and executing, with the facsimilecontroller, the facsimile communication via the IP network according tothe tone detector detecting the facsimile identification signal.
 19. Anon-transitory computer-readable storage medium storing a programexecutable by a computer to execute a method of controlling acommunication apparatus that is capable of executing facsimilecommunication via an IP network, the communication apparatus comprisinga facsimile controller including a tone detector configured to detect afacsimile identification signal, and configured to control facsimilecommunication, a telephone controller configured to control a telephone,and a selector configured to control whether to supply input signalsfrom the IP network to both the facsimile controller and the telephonecontroller, or to either the facsimile controller or the telephonecontroller, the method comprising the steps of: setting a reception modeof the communication apparatus from among a plurality of reception modesincluding a remote reception mode where a facsimile reception is startedaccording to an instruction from a user issued during voicecommunication using the telephone; and controlling the selector so thatthe input signals from the IP network are supplied to the telephonecontroller and are prevented from being supplied to the facsimilecontroller according to a call for voice communication being receivedwhen the remote reception mode has been set in the setting step.
 20. Anon-transitory computer-readable storage medium storing a programexecutable by a computer to execute a method of controlling acommunication apparatus that is capable of executing voice communicationand facsimile communication via an IP network, the communicationapparatus comprising a connector that connects a telephone, the methodcomprising the steps of: setting a reception mode of the communicationapparatus from among a plurality of reception modes including ananswerphone connection mode where a facsimile reception starts accordingto a detection of a facsimile identification signal; causing thetelephone to ring according to a call for voice communication beingreceived while the answerphone connection mode has been set; detectingoff-hooking of the telephone and sending an automatic reply messageusing an answerphone function of the telephone via the IP network; andexecuting the facsimile communication via the IP network according tothe detection of the facsimile identification signal.